package com.wmyg.scanninggun.dao;

import com.wmyg.scanninggun.bean.Factory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author yangy
 * @since 2018/9/29 上午
 */
@Mapper
@Repository
public interface FactoryMapper {

    Factory view(@Param("factoryId") Integer factoryId);

    int insert(Factory factory);

    int update(Factory factory);

    List<Factory> findAll();

}
